package com.health.httpbean;

import java.io.Serializable;

/**
 * author : xiaoxin
 * date   : 2020/11/5 20:07
 * desc   :
 * update :
 */
public class HttpResultBean implements Serializable {


    /**
     * ResponseCode : 61451
     * ResponseMsg : 参数错误！
     * ResponseData : null
     */

    private int ResponseCode;
    private String ResponseMsg;
    private Object ResponseData;
    private String msg;
    // 档案的是int类型0  体检数据是string 1
    private int code;
    // 接口返回ecg 图片路径
    private String fullImagePaths;

//    {"msg":"一体机未注册","code":500}

    public boolean isOk() {
        if (code == 0 || code == 1) {
            return true;
        } else {
            return false;
        }
    }

    public String getFullImagePaths() {
        return fullImagePaths;
    }

    public void setFullImagePaths(String fullImagePaths) {
        this.fullImagePaths = fullImagePaths;
    }


    public int getResponseCode() {
        return ResponseCode;
    }

    public void setResponseCode(int ResponseCode) {
        this.ResponseCode = ResponseCode;
    }

    public String getResponseMsg() {
        return ResponseMsg;
    }

    public void setResponseMsg(String ResponseMsg) {
        this.ResponseMsg = ResponseMsg;
    }

    public Object getResponseData() {
        return ResponseData;
    }

    public void setResponseData(Object ResponseData) {
        this.ResponseData = ResponseData;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    @Override
    public String toString() {
        return "HttpResultBean{" +
                "ResponseCode=" + ResponseCode +
                ", ResponseMsg='" + ResponseMsg + '\'' +
                ", ResponseData=" + ResponseData +
                ", msg='" + msg + '\'' +
                ", code=" + code +
                '}';
    }
}
